import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';

class ShowDialogDemo extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Center(
      child: FlatButton.icon(
          onPressed: () {
            showDialog(
                context: context,
                builder: (BuildContext context) {
                  return Center(
                    child: Container(
                      child: Text('你中招啦'),
                      height: 200,
                      width: 200,
                      color: Colors.pink,
                    ),
                  );
                });
          },
          icon: Icon(Icons.arrow_forward),
          label: Text('点我呀')),
    );
  }
}
